package com.jvm123.meilisearch.json;

import java.util.List;
import java.util.Map;

/**
 * @author yawn
 */
public class MatchedBean<T> {

    private T _formatted;
    private Map<String, List<Matching>> _matchesInfo;

    public T get_formatted() {
        return _formatted;
    }

    public void set_formatted(T _formatted) {
        this._formatted = _formatted;
    }

    public Map<String, List<Matching>> get_matchesInfo() {
        return _matchesInfo;
    }

    public void set_matchesInfo(Map<String, List<Matching>> _matchesInfo) {
        this._matchesInfo = _matchesInfo;
    }

    private class Matching {
        long start;
        long length;

        public long getStart() {
            return start;
        }

        public void setStart(long start) {
            this.start = start;
        }

        public long getLength() {
            return length;
        }

        public void setLength(long length) {
            this.length = length;
        }
    }
}
